import '../css/triangle.css'

var flag = true
const tran = '50px solid transparent';
function toggle() {
    var leftEl = document.getElementById("left");
    if (flag) {
        leftEl.style["border-top"] = '50px solid antiquewhite'
        leftEl.style["border-left"] = leftEl.style["border-right"] = tran
        leftEl.style["border-bottom"] = ''
    } else {
        leftEl.style["border-left"] = '50px solid blueviolet'
        leftEl.style["border-top"] = leftEl.style["border-bottom"]  = tran
        leftEl.style["border-right"] = ''
    }
    flag = !flag;
}

export {
   toggle
}
